home *** CD-ROM | disk | FTP | other *** search
- ..pgno01
- ..foot63A7-##
- ..head02L──────────────────────────────────────────────────────────────────────
- ..head04L──────────────────────────────────────────────────────────────────────
- ..head03ABeep
- ■ Description
-
- Beep the speaker.
-
-
- ■ Summary
-
- Procedure Beep( Freq, Dur : Word );
-
- Freq is the tone, in units, of the speaker.
-
- Dur is the duration of time in units to beep the
- speaker.
-
-
- ■ Example
-
- Program Example;
- Uses FPDos;
- Var
- i : Word;
- Begin
- For i := 1 To 30000 Do
- Beep( i, i );
- End.
- ..page
- ..head03ADosExec
- ■ Description
-
- Execute a child process, without having to worry about setting the
- maximum heap size.
-
-
- ■ Summary
-
- Function DosExec( CmdLine : String ) : Integer;
-
- CmdLine is a string expressing representing the command
- line or child process to be executed.
-
-
- ■ Remarks
-
- This function will return one of the following termination codes:
-
- 0 - Normal termination
- 1 - Invalid function number
- 2 - File not found
- 5 - Access denied
- 8 - insufficient memory
- 10 - invalid envoronment
- 11 - invalid format
- 999 - Length of command line string is to long
-
-
- ■ Example
-
- Program Example;
- Uses FPDos,Crt;
- Begin
- writeln( DosExec( '\command.com /c dir *.*' ) : 1 );
- writeln( DosExec( 'turbo.exe' ) : 1 );
- End.
-
- The program will do a directory listing on the current directory.
- After the directory listing is complete it will start up the turbo
- pascal. If the test program is unable to execute any of the
- commands or programs then the termination code that is displayed
- will not be 0.
- ..page